import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;

class Fxjewellry$GUI extends JFrame
{
  private static final long serialVersionUID = 570716943631400833L;
  private final String[] jewels = { "None (Gold)", "Sapphire", "Emerald", "Ruby", "Diamond", "Dragonstone", "Onyx" };

  private final String[] locations = { "Al Kaharid", "Edgeville", "Neitiznot (Not Implemented)" };

  private final String[] mouseString = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };

  private final String[] types = { "Ring", "Necklace", "Amulet", "Bracelet" };

  private boolean cancel = false;

  private JButton cancelButton = new JButton("Cancel");
  private JComboBox goldLocations = new JComboBox(this.locations);
  private JComboBox goldTypes = new JComboBox(this.types);
  private JComboBox jewellryTypes = new JComboBox(this.jewels);
  private JComboBox mouseHi = new JComboBox(this.mouseString);
  private JComboBox mouseLo = new JComboBox(this.mouseString);
  private JButton startButton = new JButton("Start");
  private JLabel title = new JLabel("<html><body><b><font size=\"5\">Fxjewellry</font></b></body></html>");

  public boolean isCancelled()
  {
    return this.cancel;
  }

  public String getGoldType() {
    return (String)this.goldTypes.getSelectedItem();
  }

  public int getJewel() {
    return this.jewellryTypes.getSelectedIndex();
  }

  public int getGoldLocation() {
    return this.goldLocations.getSelectedIndex();
  }

  public int getMouseHi() {
    return this.mouseHi.getSelectedIndex();
  }

  public int getMouseLo() {
    return this.mouseLo.getSelectedIndex();
  }

  public Fxjewellry$GUI(Fxjewellry paramFxjewellry, Fxjewellry.SettingsManager paramSettingsManager) {
    paramSettingsManager.add("Gold Type", this.goldTypes);
    paramSettingsManager.add("Jewel Type", this.jewellryTypes);
    paramSettingsManager.add("Location", this.goldLocations);
    paramSettingsManager.add("Mouse Hi", this.mouseHi);
    paramSettingsManager.add("Mouse Lo", this.mouseLo);
    paramSettingsManager.load();
    setLayout(new BorderLayout());
    add(new Fxjewellry.GUI.NorthPanel(this), "North");
    add(new Fxjewellry.GUI.CenterPanel(this), "Center");
    add(new Fxjewellry.GUI.SouthPanel(this), "South");
    pack();
  }
}